#include<iostream>
#include<map>
using namespace std;
int main()
{
	int n;
	cin >> n;
	map<string, int>mp;
	for (int i = 0; i < n; i++) {
		string a;
		cin >> a;
		if (!mp[a]) {
			mp[a] = 1;
		}
	}
	cout << mp.size() << endl;
	return 0;
}